package com.twentyOne.ClothingLand.service.impl;

import java.sql.Timestamp;
import java.util.Date;

import com.twentyOne.ClothingLand.dao.IPaymentDAO;
import com.twentyOne.ClothingLand.dao.impl.PaymentDAO;
import com.twentyOne.ClothingLand.service.IPaymentService;
import com.twentyOne.ClothingLand.vo.Payment;

public class WeChatPaymentService implements IPaymentService {
	
	private IPaymentDAO paymentDAO = new PaymentDAO();
	
	@Override
	public void addPayment(Payment payment) {
		
		payment.setPayTime(new Timestamp((new Date()).getTime()));
		this.paymentDAO.addPayment(payment);
		
	}
	
	@Override
	public void modifyPayment(Payment payment) {
		
		this.paymentDAO.modifyPayment(payment);
		
	}

}
